package com.web.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.web.dao.PubNewsDao;
import com.web.entity.PubNews;
import com.web.service.PubNewsService;
@Service
public class PubNewsServiceImpl implements PubNewsService {

	@Autowired
	private PubNewsDao pubNewsDao;
	
	@Override
	public Map<String,Object> addPubNews(PubNews pubNews) {		
		pubNewsDao.addNews(pubNews);
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("result","success");
		return map;
	}

}
